package com.example.service.impl;

import com.example.entity.Photo;
import com.example.mapper.PhotoMapper;
import com.example.service.IPhotoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dengc
 * @since 2023-05-10
 */
@Service
public class PhotoServiceImpl extends ServiceImpl<PhotoMapper, Photo> implements IPhotoService {
    @Resource
    private PhotoMapper photoMapper;
    @Override
    public List<Photo> getPhotoCount() {
        return photoMapper.getPhotoCount();
    }
}
